

#ifndef _LICENSE_H__
#define _LICENSE_H__

#include "LicenseAPI.hpp"
#include <QObject>
#include <QtNetwork/QHostInfo>
#include <QtNetwork/QNetworkInterface>

NAMESPACE_BEGIN(NSLicense)

class LICENSEAPI License :public QObject {
    SIGNALDEC(License, QObject)
protected:
    void Initialize();
    void Finalize();

public:
    bool checkLicense();
private:
    char decryptChar(int encrypted, int offset);
    QString passwordToMac(const QString& password);
    QString readPasswordFromFile(const QString& filename);

private:

};



NAMESPACE_END


#endif // !_LICENSE_H__
